package com.example.mapper;

import com.example.entity.Slideshow;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import java.util.List;

public interface SlideshowMapper {
    @Insert("insert into slideshow (id, img, title, content) values (#{id},#{img}, #{title}, #{content})")
    void insert(Slideshow slideshow);

    List<Slideshow> selectAll(Slideshow slideshow);

    void updateById(Slideshow slideshow);

    @Delete("delete from slideshow where id = #{id}")
    void deleteById(Integer id);
}
